package juc.c_001;/*
   Talk is cheap. Show me the code.
 */

/**
 * @Description synchronized必须可重入
 * @Date 2021/6/6
 * @Author liudl
 */
public class T10 {
    public static class TP{
        public synchronized void m(){
            System.out.println("PM");
        }
    }

    public static class TC extends TP {
        @Override
        public synchronized void m() {
            super.m();
            System.out.println("CM");
        }
    }

    public static void main(String[] args) {
        new TC().m();
    }
}
